HTTPSecureSocket Class

Used to do secure transmissions via the HTTP protocol using the SSL or TLS protocols.

Events

Connected

DownloadComplete

Error

PageReceived

ReceiveProgress


Properties

None

Methods

ClearRequestHeaders

EncodeFormData

Get

Post

SetFormData

SetPostContent

SetRequestHeader


More information available in parent classes: SSLSocket:TCPSocket:SocketCore:Object


Notes

Use the HTTPSecureSocket class to perform secure communications via the HTTP protocol. It is identical to the HTTPSocket class except that it is derived from the SSLSocket class instead of the TCPSocket class. This means that you can use the Secure property of SSLSocket to switch to HTTPS. When you set Secure to True, the default port changes from 80 to 443.

If you use a constructor in a subclass of HTTPSecureSocket, you must call the Super class's constructor in your subclass's constructor. The subclass will not work unless this is done.


Example

The following example posts a simple form:

Dim form as Dictionary
Dim socket1 as HTTPSecureSocket
Socket1.Secure= True

// create and populate the form object
form = New Dictionary
form.value("firstname") = "Bob"
form.value("lastname") = "Brown"

// setup the socket to POST the form
socket1.setFormData form
socket1.post "https://www.myformlocation.com/form.php"

See Also

HTTPSocket, SSLSocket, SocketCore, TCPSocket classes.